<%@page import="models.RecentSite"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="helpers.HeaderHelper"%>
<%@page import="models.Domain"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	String ip = (String) request.getAttribute("ip");
%>

<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>
<script type="text/javascript" src="http://ip-geo.appspot.com/geo_data.js"></script>
<script type="text/javascript">
<!--
	$(document).ready(function () {
		$(".head-nav li").removeClass("selected");
		$(".head-nav li").eq(1).addClass("selected");
	});
//-->
</script>
		<!-- 2. content -->
		<div id="content">
		
			<!-- 3. site-info -->
			<div class="site-info">
				<!-- google adsense -->
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 728x90 */
				google_ad_slot = "0571679791";
				google_ad_width = 728;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				<!-- end google adsense -->
			</div>
			<!-- 3. end site-info -->
			
			<!-- 3. whois-info -->
			<div class="site-header whois-info">
				<h2>Your IP Address Is: <a href="/w/<%=ip %> %>"><%=ip %></a></h2>
				<div>
					<script type='text/javascript'>
						document.write(geo.generate_map(500, 400));
					</script>
				</div>
			</div>
			<!-- 3. end whois-info -->
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 300x250 */
				google_ad_slot = "8080276388";
				google_ad_width = 300;
				google_ad_height = 250;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
			<!-- 3. end block -->
		
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site Update</h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						for (int i = 0; i < recentSiteUpdate.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site View</h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						for (int i = 0; i < recentSiteView.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>				
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>
